<template>
  <el-timeline>
    <el-timeline-item
      v-for="item in versionInfo"
      :key="item.version"
      :timestamp="item.version"
      placement="top"
    >
      <el-card>
        <div>{{ item.info }}</div>
      </el-card>
    </el-timeline-item>
  </el-timeline>
</template>

<script>
import { reactive, toRefs } from 'vue'
import { versionInfo } from './data'

export default {
  setup() {
    const data = reactive({
      versionInfo
    })

    return {
      ...toRefs(data)
    }
  }
}
</script>
